<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>注册-爆爆社区</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/login.css}">
</head>
<body class="text-center">

<form class="form-signin" th:action="@{/register}" method="post">
    <img style="border-radius: 50%" class="mb-4" th:src="@{/images/logo/logo.jpg}" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">注册</h1>
    <span th:text="${regMsg}" style="color: red"></span>
    <input type="text" name="username" class="form-control mb-2" placeholder="用户名" required="">
    <input type="password" name="password"  class="form-control" placeholder="密码" required="">
    <input type="password" name="repassword" class="form-control" placeholder="再次输入密码" required="">
    <input type="text" name="code" class="form-control" placeholder="邀请码" required="">
    <button class="btn btn-primary btn-block mt-3" type="submit">注册</button>
   <p style="text-align: right"><a th:href="@{/toLogin}" >已有账号?去登录</a></p>
   <p style="text-align: left"><a th:href="@{/invite}" >没有邀请码?</a></p>

    <p class="mt-5 mb-3 text-muted">©爱生活 爱爆爆</p>
</form>


</body>
</html>